package org.example.system.domain.sysuser.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class SysUserSaveDTO {

    @NotBlank(message = "⽤⼾账号不能为空")
    private String userAccount;

    @NotBlank(message = "昵称不能为空")
    private String nickName;

    @NotBlank(message = "用户密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度不能少于6位, 不能大于20位")
    private String password;

}
